<% form_for(the_shim, :url => {:action => the_action}, :html => {
    :multipart => true, :class => "form"}) do |f| %>
	<%= f.error_messages %>
	<div>
		<%= f.label :name %>
		<%= f.text_field :name %>
	</div>
	<div>
		<%= f.label "Type" %>
		<%= f.select :shim_type, Shim::SHIM_SERVICE_TYPES %>
	</div>
  <div>
    <%= f.label "Class" %>
    <%= f.select :shim_class, Shim::SHIM_CLASSES %>
  </div>
	<div>
	  <%= label_tag "Service name" %>
    <%= text_field_tag 'service[name]' %>
  </div>
  <div>
    <%= label_tag "Service endpoint or WSDL URL" %>
    <%= text_field_tag 'service[endpoint_url]' %>
  </div>
  <div>
    <%= label_tag "BioCatalogue Link" %>
    <%= text_field_tag 'service[biocat_link]' %>  
	</div>
	<% if self.controller.action_name=~/new/i %>
    <div>
  		<%= label_tag "Description" %><br />
  		<%= text_area_tag :description, nil, :size => "87x5" %>
  	</div>
  <% end %>
  <%= hidden_field_tag 'type', 'service' %>
	<p><%= f.submit 'Save' %></p><br />
<% end %>